from django.shortcuts import render, HttpResponse


# Create your views here.

# 练习路由控制器
def special_case_2020(request):
    return HttpResponse("演示路由分发： special_case_2020")


def year_archive(request, year):
    return HttpResponse("演示路由分发： year = " + year)


def month_archive(request, year, month):
    return HttpResponse("演示路由分发：no namespace: ---> " + year + "-" + month)


def article_detail(request, year, month, day):
    return HttpResponse("演示路由分发： " + year + "-" + month + "-" + day)


def month_archive_names(request, month, year):
    return HttpResponse("演示路由分发： has namespace: ---> " + year + "-" + month)
